{
  "settings": {
    "hasHeaders": true,
    "constrainDragToContainer": true,
    "reorderEnabled": true,
    "selectionEnabled": false,
    "popoutWholeStack": false,
    "blockedPopoutsThrowError": true,
    "closePopoutsOnUnload": true,
    "showPopoutIcon": false,
    "showMaximiseIcon": false,
    "showCloseIcon": false,
    "responsiveMode": "onload",
    "tabOverlapAllowance": 0,
    "reorderOnTabMenuClick": true,
    "tabControlOffset": 10
  },
  "dimensions": {
    "borderWidth": 5,
    "borderGrabWidth": 15,
    "minItemHeight": 10,
    "minItemWidth": 10,
    "headerHeight": 20,
    "dragProxyWidth": 300,
    "dragProxyHeight": 200
  },
  "labels": {
    "close": "close",
    "maximise": "maximise",
    "minimise": "minimise",
    "popout": "open in new window",
    "popin": "pop in",
    "tabDropdown": "additional tabs"
  },
  "content": [
    {
      "type": "row",
      "isClosable": true,
      "reorderEnabled": true,
      "title": "",
      "content": [
        {
          "type": "stack",
          "width": 50,
          "isClosable": true,
          "reorderEnabled": true,
          "title": "",
          "activeItemIndex": 0,
          "content": [
            {
              "type": "component",
              "componentName": "codeEditor",
              "title": "* test-union.json",
              "componentState": {
                "code": [
                  "",
                  "let r = 6;",
                  "let h = 9;",
                  "let d = 7;",
                  "let t1 = 40;",
                  "let t2 = 2;",
                  "",
                  "",
                  "let pil = Union([",
                  "        Cylinder(r, h, false),",
                  "        Translate([0, 0, h], Sphere(r)),",
                  "        Translate([0, 0, 0], Sphere(r)),",
                  "    ]);",
                  "",
                  "let pil1 = Rotate([0,1,0],-20,Translate([d,t1,0],pil,true));",
                  "let pil2 = Rotate([0,1,0],-30,Translate([0,t1,0],pil,true));",
                  "let pil3 = Rotate([0,1,0],-40,Translate([-d,t1,0],pil,false));",
                  "",
                  "let pilcombination = Union([pil1,pil2,pil3]); ",
                  "",
                  "Union([",
                  "    Rotate([0, 1, 0], -20, Translate([d, t2, 0], RoundedEndCylinder(6, 9))),",
                  "    Rotate([0, 1, 0], -30, Translate([0, t2, 0], RoundedEndCylinder(6, 9))),",
                  "    Rotate([0, 1, 0], -40, Translate([-d, t2, 0], RoundedEndCylinder(6, 9)))",
                  "]);",
                  "",
                  "",
                  "function RoundedEndCylinder(radius, height, centered = false) {",
                  "    return Union([",
                  "        Cylinder(radius, height, centered),",
                  "        Translate([0, 0, height], Sphere(radius)),",
                  "        Translate([0, 0, 0], Sphere(radius))",
                  "    ]);",
                  "}",
                  "",
                  "",
                  ""
                ]
              },
              "width": 50,
              "isClosable": false,
              "reorderEnabled": true
            }
          ]
        },
        {
          "type": "column",
          "isClosable": true,
          "reorderEnabled": true,
          "title": "",
          "width": 50,
          "content": [
            {
              "type": "stack",
              "height": 80,
              "isClosable": true,
              "reorderEnabled": true,
              "title": "",
              "activeItemIndex": 0,
              "content": [
                {
                  "type": "component",
                  "componentName": "cascadeView",
                  "title": "CAD View",
                  "componentState": {
                    "componentName": "cascadeView",
                    "MeshRes": 0.1,
                    "Cache?": true,
                    "Radius": 30
                  },
                  "isClosable": false,
                  "reorderEnabled": true
                }
              ]
            },
            {
              "type": "stack",
              "height": 20,
              "isClosable": true,
              "reorderEnabled": true,
              "title": "",
              "activeItemIndex": 0,
              "content": [
                {
                  "type": "component",
                  "componentName": "console",
                  "title": "Console",
                  "componentState": {},
                  "height": 20,
                  "isClosable": false,
                  "reorderEnabled": true
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "isClosable": true,
  "reorderEnabled": true,
  "title": "",
  "openPopouts": [],
  "maximisedItemId": null
}